package com.sky.api.client;


import com.sky.api.config.DefaultFeignConfig;
import com.sky.entity.AddressBook;
import com.sky.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user-service",configuration = {DefaultFeignConfig.class})
public interface AddressBookClient {
    @GetMapping("/user/addressBook/{id}")
    Result<AddressBook> getById(@PathVariable Long id);

}
